package com.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * Created by he on 2025/3/24 20:45
 * 消费者实体类
 */
@Data
public class Customer extends BaseEntity implements Serializable {
    private static final long serialVersionUID = 1L;
    @TableId(value = "customer_id", type = IdType.AUTO)
    private Integer customerId; // 消费者ID
    private String customerName; // 消费者姓名
    private String customerPhone; // 消费者电话
    private String customerType; // 消费者类型 如会员和非会员

    //新增
    //染发数额
    private int hairdyeCount;
    //剪发数额
    private int haircutCount;
    //用户余额
    private BigDecimal balance;

    public Customer() {
    }

    public Customer(Integer customerId, String customerName, String customerPhone, String customerType, int hairdyeCount, int haircutCount, BigDecimal balance) {
        this.customerId = customerId;
        this.customerName = customerName;
        this.customerPhone = customerPhone;
        this.customerType = customerType;
        this.hairdyeCount = hairdyeCount;
        this.haircutCount = haircutCount;
        this.balance = balance;
    }

    @Override
    public String toString() {
        return "Customer{" +
                "customerId=" + customerId +
                ", customerName='" + customerName + '\'' +
                ", customerPhone='" + customerPhone + '\'' +
                ", customerType='" + customerType + '\'' +
                ", hairdyeCount=" + hairdyeCount +
                ", haircutCount=" + haircutCount +
                ", balance=" + balance +
                '}';
    }
}
